<template>
  <el-card class="box-card1" style="overflow:auto">
    <div slot="header" class="clearfix" style="height: 30px">
      <h3 style="float: left">群组管理</h3>
      <el-button style="float: right" type="primary" round v-on:click="">添加群组</el-button>
    </div>
    <el-card>
      <el-table
        :data="tableData"
        stripe
        style="width: 100%">
        <el-table-column
          fixed
          prop="date"
          label="群组名称"
          width="200">
        </el-table-column>
        <el-table-column
          prop="name"
          label="所属应用"
          width="200">
        </el-table-column>
        <el-table-column
          prop="province"
          label="群组人数"
          width="200">
        </el-table-column>
        <el-table-column
          fixed="right"
          label="操作"
        >
          <template slot-scope="scope" style="">
            <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button>
            <el-button type="text" size="small">编辑</el-button>
          </template>
        </el-table-column>
      </el-table>
    </el-card>

    <el-pagination
      background
      layout="prev, pager, next"
      :total="1000"
    style="margin-top: 3%">
    </el-pagination>
  </el-card>
</template>

<script>
  export default {
    methods: {
      handleClick(row) {
        console.log(row);
      }
    },

    data() {
      return {
        tableData: [{
          date: '2016-05-02',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1518 弄',
          zip: 200333
        }, {
          date: '2016-05-04',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1517 弄',
          zip: 200333
        }, {
          date: '2016-05-01',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1519 弄',
          zip: 200333
        }, {
          date: '2016-05-03',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1516 弄',
          zip: 200333
        }]
      }
    }
  }
</script>
<style>
  .box-card1 {
    width: 100%;
    height: 100%;

  }


</style>
